package com.hnguigu.health.houduan.lcj.controller_lcj;

import com.hnguigu.health.houduan.lcj.pojo_lcj.TClinicDepartment_lcj;
import com.hnguigu.health.houduan.lcj.service_lcj.TClinicDepartmentService_lcj;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/tclinic")
public class TClinicDepartmentController_lcj {
    @Autowired(required = false)
    TClinicDepartmentService_lcj tclindepart;

    @GetMapping("/findAll")
    @ResponseBody
    public List<TClinicDepartment_lcj> findAll(){
        return tclindepart.getAll();
    }
}
